Component({
    //接收参数
    properties: {
        //历史记录
        historyKeywordList: {
            type: Object,
            value: []
        },
        //热门搜索
        hotKeywordList: {
            type: Object,
            value: []
        }

    },
    methods: {
        //清除历史记录
        clearnHistory() {
            this.triggerEvent("clearnHistory")
        },
        //点击标签
        clickTag(e) {
           
            // console.log(e.currentTarget.dataset);
            let keyword = e.currentTarget.dataset.tagname
            this.triggerEvent("clickTag", keyword)

        }
    }
})